//
//  UILabel+Extension.swift
//  SinaWeiBo
//
//  Created by 有风 on 16/2/17.
//  Copyright © 2016年 YouFeng. All rights reserved.
//

import UIKit
extension UILabel {
    convenience init(text: String,fontSize: CGFloat,textColor: UIColor,alignment: NSTextAlignment = .Center) {
        self.init()
        self.text = text
        self.font = UIFont.systemFontOfSize(fontSize)
        self.textColor = textColor
        
        self.numberOfLines = 0
        self.textAlignment = alignment
        sizeToFit()
        
    }
}
